package com.goktech.olala.server.dao.goods;

import com.goktech.olala.server.pojo.goods.GoodsReport;

import java.util.List;

/**
 * @author wusq
 */
public interface GoodsReportMapper {
    /**
     *通过id删除
     * @param goodsId
     * @return
     * @throws Exception
     */
    int deleteByPrimaryKey(String goodsId) throws Exception;

    /**
     * 多条件新增
     * @param record
     * @return
     * @throws Exception
     */
    int insertByExample(GoodsReport record) throws Exception;

    /**
     * 通过id查询
     * @param goodsId
     * @return
     * @throws Exception
     */
    GoodsReport selectByPrimaryKey(String goodsId) throws Exception;

    /**
     * 更新
     * @param record
     * @return
     * @throws Exception
     */
    int updateByPrimaryKey(GoodsReport record) throws Exception;
}